package com.sdgakj.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;


@Entity
@Table(name="f_news")
public class News extends IdEntity {
	private String fnTitle;//新闻标题
	private String fnDesp;//新闻内容

	private Date createtime;//创建时间
	private Date updatetime;//修改时间

	private Long userId;//创建人

	private String imgUrl;


    private String deltag;//是否删除 0未删除 1删除

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getFnTitle() {
		return fnTitle;
	}

	public void setFnTitle(String fnTitle) {
		this.fnTitle = fnTitle;
	}

	public String getFnDesp() {
		return fnDesp;
	}

	public void setFnDesp(String fnDesp) {
		this.fnDesp = fnDesp;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public String getDeltag() {
        return deltag;
    }

    public void setDeltag(String deltag) {
        this.deltag = deltag;
    }

    @Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
